package com.tomshushu.doc.freedoc.modular.directory.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tomshushu.doc.freedoc.modular.directory.entity.DirectoryEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description:
 * @author: zhouhong
 * @date: 2025-06-11 12:17
 * @version: 1.0
 */
public interface DirectoryMapper extends BaseMapper<DirectoryEntity> {

    /**
     * 获取子目录以及所有子目录 ID列表
     *
     * @param directoryId
     * @return
     */
    List<String> getAllChildDirectoryIds(@Param("directoryId") String directoryId);

}